From ac806fcc93579bceacce59fa20276d69e7177b5e Mon Sep 17 00:00:00 2001 From: foo-dogsquared Date: Sun, 1 Sep 2019 14:23:44 +0800 Subject: [PATCH] Update i3, compton, rofi, and a pacman hook --- compton/compton.conf | 7 ++++--- i3/config | 12 +++++++----- pacman/hooks/10-pacman-full-upgrade.hook | 2 +- rofi/config.rasi | 1 + 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/compton/compton.conf b/compton/compton.conf index cba3b9b..2da8fc7 100644 --- a/compton/compton.conf +++ b/compton/compton.conf @@ -110,7 +110,8 @@ frame-opacity = 1; inactive-opacity-override = false; # Dim inactive windows. (0.0 - 1.0) -inactive-dim = 0.75; +inactive-dim = 0.3; + # Do not let dimness adjust based on window opacity. # inactive-dim-fixed = true; # Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. @@ -131,7 +132,7 @@ blur-background-exclude = [ ################################# # Fade windows during opacity changes. -fading = true; +fading = false; # The time between steps in a fade in milliseconds. (default 10). fade-delta = 4; # Opacity change between steps while fading in. (default 0.028). @@ -139,7 +140,7 @@ fade-in-step = 0.03; # Opacity change between steps while fading out. (default 0.03). fade-out-step = 0.03; # Fade windows in/out when opening/closing -# no-fading-openclose = true; +no-fading-openclose = true; # Specify a list of conditions of windows that should not be faded. fade-exclude = [ ]; diff --git a/i3/config b/i3/config index e2e3165..6e51842 100644 --- a/i3/config +++ b/i3/config @@ -62,6 +62,7 @@ bindsym $mod+Shift+q kill # start dmenu (a program launcher) bindsym $mod+d exec rofi -show drun -sidebar-mode -theme fds-sidebar-dark +bindsym $mod+Shift+d exec ~/.scripts/rofi-user-action-menu.sh # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. @@ -211,11 +212,9 @@ bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 # reload the configuration file -bindsym $mod+Shift+c reload +bindsym $mod+r reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart -# exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) mode "resize" { @@ -233,10 +232,10 @@ mode "resize" { # back to normal: Enter or Escape or $mod+r bindsym Return mode "default" bindsym Escape mode "default" - bindsym $mod+r mode "default" + bindsym $mod+q mode "default" } -bindsym $mod+r mode "resize" +bindsym $mod+q mode "resize" # Make dialogs to float by default for_window [window_role="pop-up"] floating enable @@ -267,6 +266,9 @@ mode "applications" { bindsym $mod+a mode "applications"; exec sleep 1 && i3-msg mode "default" +bindsym $mod+c [class="code"] focus +bindsym $mod+Shift+c [instance="vim"] focus + # i3 bar bar { height 35 diff --git a/pacman/hooks/10-pacman-full-upgrade.hook b/pacman/hooks/10-pacman-full-upgrade.hook index 004dc4c..6ce6395 100644 --- a/pacman/hooks/10-pacman-full-upgrade.hook +++ b/pacman/hooks/10-pacman-full-upgrade.hook @@ -8,6 +8,6 @@ Target = * [Action] Depends = pacman Description = Do a system sync first before doing any operations -When = PostTransaction +When = PreTransaction Exec = /usr/bin/pacman -Syu diff --git a/rofi/config.rasi b/rofi/config.rasi index 082e739..f1b415f 100644 --- a/rofi/config.rasi +++ b/rofi/config.rasi @@ -5,4 +5,5 @@ configuration { display-ssh: "SSH"; font: "Iosevka 14"; show-icons: true; + theme: "fds-sidebar-dark"; }