diff --git a/README.org b/README.org index 203fa3c..f7a60ee 100644 --- a/README.org +++ b/README.org @@ -11,7 +11,6 @@ dots for my lenovo yoga slim 7i pro 「itomori」 + alacritty + zsh + dunst -+ picom + polybar + rofi + xlock @@ -23,14 +22,17 @@ dots for my lenovo yoga slim 7i pro 「itomori」 + okular / zathura ** control stuff + [[https://github.com/bulletmark/libinput-gestures][libinput-gestures]] -+ amixer ++ pactl + playerctl + light + feh -+ [[https://github.com/marcothms/enact/tree/new_primary][enact]] + nm-applet + xdotool + wmctrl ++ redshift-gtk ** special stuff + fcitx5 (with mozc) + hunspell DE +** GTK theming ++ papirus icons ++ materia gtk theme diff --git a/files/.Xresources b/files/.Xresources index 3cad8e0..6137f67 100644 --- a/files/.Xresources +++ b/files/.Xresources @@ -1,4 +1,4 @@ -Xft.dpi: 180 +Xft.dpi: 140 ! Font XTerm.vt100.faceName: xft:SFMono Nerd Font Mono:antialias=true diff --git a/files/.config/dunst/dunstrc b/files/.config/dunst/dunstrc index d5cabb8..e11639f 100644 --- a/files/.config/dunst/dunstrc +++ b/files/.config/dunst/dunstrc @@ -6,15 +6,15 @@ follow = mouse width = 400 origin = "top-center" - offset = "0x80" + offset = "0x20" indicate_hidden = yes shrink = no separator_height = 1 transparency = 0 - padding = 8 + padding = 10 horizontal_padding = 8 frame_width = 2 - frame_color = "#A6CC70" + frame_color = "#5c6773" separator_color = frame sort = yes idle_threshold = 120 @@ -57,16 +57,16 @@ [urgency_low] - background="#ffffff" + background="#eeeeee" foreground="#050505" timeout = 3 [urgency_normal] - background="#ffffff" + background="#eeeeee" foreground="#050505" timeout = 3 [urgency_critical] - background="#ffffff" + background="#eeeeee" foreground="#050505" timeout = 0 diff --git a/files/.config/i3/config b/files/.config/i3/config index c55f273..2463f66 100644 --- a/files/.config/i3/config +++ b/files/.config/i3/config @@ -2,6 +2,11 @@ set $mod Mod4 font pango:JuliaMono 10 floating_modifier $mod +# bindings idea: +# mod + KEY = open sth +# mod + shift = move sth +# mod + ctrl = manipulate display + # applications bindsym $mod+Return exec --no-startup-id alacritty bindsym $mod+d exec --no-startup-id rofi -theme ~/.config/rofi/light.rasi -show drun @@ -9,12 +14,12 @@ bindsym $mod+Shift+s exec --no-startup-id flameshot gui bindsym XF86Calculator exec --no-startup-id emacs # audio and brightness -bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle -bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 1%- -bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 1%+ -bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause -bindsym XF86AudioNext exec --no-startup-id playerctl next -bindsym XF86AudioPrev exec --no-startup-id playerctl previous +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% +bindsym XF86AudioPlay exec --no-startup-id playerctl -p spotify play-pause +bindsym XF86AudioNext exec --no-startup-id playerctl -p spotify next +bindsym XF86AudioPrev exec --no-startup-id playerctl -p spotify previous bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5 bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5 @@ -25,8 +30,12 @@ bindsym Ctrl+Shift+space exec --no-startup-id dunstctl history-pop # kill focused window bindsym $mod+Shift+BackSpace kill -# lock -bindsym $mod+Control+BackSpace exec --no-startup-id xlock -mode maze +# lock etc +bindsym $mod+Control+BackSpace exec --no-startup-id ~/dots/scripts/powermenu.sh + +# change monitor layout +bindsym $mod+Control+d exec --no-startup-id ~/dots/scripts/monitor.sh dual +bindsym $mod+Control+s exec --no-startup-id ~/dots/scripts/monitor.sh single # change focus bindsym $mod+h focus left @@ -97,6 +106,9 @@ bindsym $mod+Shift+0 move container to workspace $ws10 bindsym $mod+Left workspace prev bindsym $mod+Right workspace next +bindsym $mod+Ctrl+h move workspace to output left +bindsym $mod+Ctrl+l move workspace to output right + # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) @@ -116,10 +128,10 @@ set $blue "#55b4d4" set $yellow "#e7c547" # class border backgr. text indicator child_border -client.focused $green $green $black $green $black +client.focused $green $green $black $green $green client.focused_inactive $yellow $yellow $black $yellow $black client.unfocused $white $white $black $white $black -client.urgent $red $red $white $red $black +client.urgent $red $red $white $red $red # i3 bar # flaoting on start @@ -129,24 +141,18 @@ for_window [class="flameshot"] floating enable # border hide_edge_borders smart -for_window [class="^.*"] border pixel 0 - -# bar -exec_always --no-startup-id ~/dots/scripts/polybar.sh +for_window [class="^.*"] border pixel 2 # gaps gaps inner 10 -# wallpaper -exec_always --no-startup-id feh --bg-fill ~/data/Seafile/images/wallpaper/wallpaper.png +# desktop (wallpaper, bar, picom) +exec_always --no-startup-id ~/dots/scripts/reload_desktop.sh # startup exec --no-startup-id nm-applet exec --no-startup-id keepassxc exec --no-startup-id seafile-applet exec --no-startup-id fcitx5 -exec --no-startup-id picom --backend glx --no-vsync -exec --no-startup-id enact --watch --pos top -n 1 exec --no-startup-id libinput-gestures-setup start - -exec_always --no-startup-id notify-send -i ~/data/Seafile/images/anime/dashboard.png "よろしくマルコさん!" "「i3」へようこそ。" +exec --no-startup-id redshift-gtk -l 48.13333:11.56667 diff --git a/files/.config/picom/picom.conf b/files/.config/picom/picom.conf deleted file mode 100644 index 511fcab..0000000 --- a/files/.config/picom/picom.conf +++ /dev/null @@ -1,18 +0,0 @@ -# corner-radius = 40; - -# rounded-corners-exclude = [ -# "class_g = 'i3bar'", -# "class_g = 'Polybar'", -# ]; - -# detect-rounded-corners = true - -shadow = true; -shadow-radius = 15; -shadow-opacity = 0.2 - -shadow-exclude = [ - "class_g = 'i3-frame'", - "class_g = 'Polybar'", - "class_g = 'Firefox'", -]; diff --git a/files/.config/polybar/config b/files/.config/polybar/config index 6702b7e..8ae1e79 100644 --- a/files/.config/polybar/config +++ b/files/.config/polybar/config @@ -1,13 +1,14 @@ [colors] white = #ffffff black = #5c6773 +grey = #eeeeee green = #a6cc70 red = #ff3333 [bar/bar] -font-0 = "JuliaMono:pixelsize=10;4" -font-1 = "Noto Sans Mono CJK JP:pixelsize=10;3" +font-0 = "PT Sans:pixelsize=10:weight=bold;4" +font-1 = "Noto Sans Mono CJK JP:pixelsize=10:weight=bold;3" font-2 = "FontAwesome:pixelsize=10;4" monitor = ${env:MON} @@ -18,18 +19,18 @@ scroll-down = i3wm-wsnext fixed-center = true width = 100% -height = 50 +height = 40 dpi = ${xrdb:Xft.dpi:-1} -background = ${colors.white} -foreground = ${colors.black} +background = ${colors.black} +foreground = ${colors.white} bottom = false screenchange-reload = true -tray-position = right +tray-position = ${env:TRAYPOS:right} tray-scale = 1.0 tray-maxsize = 25 @@ -39,9 +40,9 @@ padding-left = 1 padding-right = 1 module-margin = 2 -modules-left = logo i3 polywins spotify +modules-left = logo i3 polywins sep spotify modules-center = -modules-right = backlight pulseaudio battery conservation date time +modules-right = cpu sep cpu_temp sep temp sep ram sep backlight sep pulseaudio sep conservation sep battery sep date sep [module/i3] strip-wsnumbers = true @@ -63,28 +64,25 @@ ws-icon-8 = 9;九 ws-icon-9 = 10;十 label-focused = %icon% -label-focused-background = ${colors.green} -label-focused-padding = 1 +label-focused-padding = 2 +label-focused-overline = ${colors.green} label-unfocused = %icon% -label-unfocused-padding = 1 +label-unfocused-padding = 2 label-visible = %icon% -label-visible-padding = 1 +label-visible-padding = 2 label-urgent = %icon% label-urgent-overline = ${colors.red} -label-urgent-padding = 1 +label-urgent-padding = 2 [module/date] type = internal/date interval = 1.0 -date =  %a, %d %b - -[module/time] -type = internal/date -interval = 1.0 -date =  %H:%M +date = %a, %d %b +time = %H:%M +label =  %date% %time% [module/pulseaudio] type = internal/pulseaudio @@ -135,7 +133,7 @@ type = custom/script exec = if [ /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode ]; then echo "On"; else echo "Off"; fi click-left = alacritty --command ~/dots/scripts/conservation_mode.sh format =