From 69dd335f208d9935cd91487db0e4c4e16dc89af1 Mon Sep 17 00:00:00 2001 From: David Chen Date: Thu, 6 Jun 2019 11:13:02 +0800 Subject: [PATCH] i3, compton, ranger, polybar --- .gitignore | 1 + compton/compton.conf | 1 + i3/config | 24 ++++++++++++++---- polybar/config | 10 ++++---- .../__pycache__/__init__.cpython-37.opt-1.pyc | Bin 138 -> 138 bytes .../__pycache__/default.cpython-37.opt-1.pyc | Bin 2878 -> 2878 bytes ranger/rc.conf | 1 + 7 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 compton/compton.conf diff --git a/.gitignore b/.gitignore index b814d9c..0aff5b8 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ !/i3/ !/polybar/ !/ranger/ +!/compton/ !/.Xmodmap !/.zshrc !/.gitignore diff --git a/compton/compton.conf b/compton/compton.conf new file mode 100644 index 0000000..73a0fc2 --- /dev/null +++ b/compton/compton.conf @@ -0,0 +1 @@ +inactive-dim = 0.2; diff --git a/i3/config b/i3/config index e0b6841..dca033c 100644 --- a/i3/config +++ b/i3/config @@ -27,6 +27,11 @@ font pango:monospace 8 # font, it doesn’t scale on retina/hidpi displays. exec_always --no-startup-id ~/.config/i3/polybar.sh & +exec_always --no-startup-id compton --config ~/.config/compton/compton.conf +exec_always variety +exec_always fcitx +exec_always --no-startup-id ~/scripts/inverse-scroll.sh +exec_always --no-startup-id ~/scripts/tap-to-click.sh for_window [class="^.*"] border pixel 1 new_window 1pixel @@ -35,14 +40,23 @@ new_window 1pixel floating_modifier $mod # start a terminal -bindsym $mod+Return exec i3-sensible-terminal +bindsym $mod+Return exec deepin-terminal -e ranger + +# open ranger +bindsym $mod+Shift+t exec deepin-terminal -e ranger # kill focused window bindsym $mod+Shift+q kill # Open browser -bindsym $mod+b exec chromium +bindsym $mod+c exec google-chrome-stable +# Open music player +bindsym $mod+m exec netease-cloud-music + +# Switching keyboard layouts +bindsym $mod+Shift+k exec xmodmap ~/.Xmodmap-cn +bindsym $mod+Shift+m exec xmodmap ~/.Xmodmap # start dmenu (a program launcher) bindsym $mod+s exec dmenu_run @@ -154,9 +168,9 @@ mode "resize" { # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. bindsym n resize shrink width 10 px or 10 ppt - bindsym e resize grow height 10 px or 10 ppt - bindsym i resize shrink height 10 px or 10 ppt - bindsym o resize grow width 10 px or 10 ppt + bindsym u resize grow height 10 px or 10 ppt + bindsym e resize shrink height 10 px or 10 ppt + bindsym i resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt diff --git a/polybar/config b/polybar/config index 3be0588..8f9692f 100644 --- a/polybar/config +++ b/polybar/config @@ -30,7 +30,7 @@ alert = #bd2c40 [bar/bar1] ;monitor = ${env:MONITOR:HDMI-1} width = 100% -height = 23 +height = 30 ;offset-x = 1% ;offset-y = 1% radius = 0.0 @@ -218,7 +218,7 @@ label = %percentage_used%% [module/network] type = internal/network -interface = wlp2s0 +interface = wlp0s20f3 interval = 3.0 label = %essid% @@ -259,7 +259,7 @@ format-disconnected = type = internal/date interval = 5 -date = " %Y-%m-%d" +date = " %Y-%m-%d " time = %H:%M time-alt = %H:%M:%S @@ -331,9 +331,9 @@ bar-volume-empty-foreground = ${colors.foreground-alt} [module/battery] type = internal/battery -battery = BAT1 +battery = BAT0 adapter = ADP1 -full-at = 98 +full-at = 100 format-charging = format-charging-underline = #ffb52a diff --git a/ranger/colorschemes/__pycache__/__init__.cpython-37.opt-1.pyc b/ranger/colorschemes/__pycache__/__init__.cpython-37.opt-1.pyc index 5a53d527bcf21ddead94049d2548aa6e48ec3098..6265251f4932036dae72bb2e6c3ceeebb4a7fa3d 100644 GIT binary patch delta 19 acmeBT>|*40;^pOHU|?WScl$b#yB+``^#la~ delta 19 acmeBT>|*40;^pOHU|?X#_rEidyB+`|ZUj95 diff --git a/ranger/colorschemes/__pycache__/default.cpython-37.opt-1.pyc b/ranger/colorschemes/__pycache__/default.cpython-37.opt-1.pyc index ae36c929b7b72263c28857262e42083c4c2decbf..2f4e96e5e0113027f32c4bf04cb4afb1c9be2582 100644 GIT binary patch delta 20 bcmdldwoi=PiI