mirror of
https://github.com/theniceboy/.config.git
synced 2026-07-16 22:01:21 +08:00
i3, compton, ranger, polybar
This commit is contained in:
parent
c33be6d42c
commit
69dd335f20
7 changed files with 27 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -6,6 +6,7 @@
|
||||||
!/i3/
|
!/i3/
|
||||||
!/polybar/
|
!/polybar/
|
||||||
!/ranger/
|
!/ranger/
|
||||||
|
!/compton/
|
||||||
!/.Xmodmap
|
!/.Xmodmap
|
||||||
!/.zshrc
|
!/.zshrc
|
||||||
!/.gitignore
|
!/.gitignore
|
||||||
|
|
|
||||||
1
compton/compton.conf
Normal file
1
compton/compton.conf
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
inactive-dim = 0.2;
|
||||||
24
i3/config
24
i3/config
|
|
@ -27,6 +27,11 @@ font pango:monospace 8
|
||||||
# font, it doesn’t scale on retina/hidpi displays.
|
# font, it doesn’t scale on retina/hidpi displays.
|
||||||
|
|
||||||
exec_always --no-startup-id ~/.config/i3/polybar.sh &
|
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
|
for_window [class="^.*"] border pixel 1
|
||||||
new_window 1pixel
|
new_window 1pixel
|
||||||
|
|
@ -35,14 +40,23 @@ new_window 1pixel
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
# start a terminal
|
# 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
|
# kill focused window
|
||||||
bindsym $mod+Shift+q kill
|
bindsym $mod+Shift+q kill
|
||||||
|
|
||||||
# Open browser
|
# 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)
|
# start dmenu (a program launcher)
|
||||||
bindsym $mod+s exec dmenu_run
|
bindsym $mod+s exec dmenu_run
|
||||||
|
|
@ -154,9 +168,9 @@ mode "resize" {
|
||||||
# Pressing up will shrink the window’s height.
|
# Pressing up will shrink the window’s height.
|
||||||
# Pressing down will grow the window’s height.
|
# Pressing down will grow the window’s height.
|
||||||
bindsym n resize shrink width 10 px or 10 ppt
|
bindsym n resize shrink width 10 px or 10 ppt
|
||||||
bindsym e resize grow height 10 px or 10 ppt
|
bindsym u resize grow height 10 px or 10 ppt
|
||||||
bindsym i resize shrink height 10 px or 10 ppt
|
bindsym e resize shrink height 10 px or 10 ppt
|
||||||
bindsym o resize grow width 10 px or 10 ppt
|
bindsym i resize grow width 10 px or 10 ppt
|
||||||
|
|
||||||
# same bindings, but for the arrow keys
|
# same bindings, but for the arrow keys
|
||||||
bindsym Left resize shrink width 10 px or 10 ppt
|
bindsym Left resize shrink width 10 px or 10 ppt
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ alert = #bd2c40
|
||||||
[bar/bar1]
|
[bar/bar1]
|
||||||
;monitor = ${env:MONITOR:HDMI-1}
|
;monitor = ${env:MONITOR:HDMI-1}
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 23
|
height = 30
|
||||||
;offset-x = 1%
|
;offset-x = 1%
|
||||||
;offset-y = 1%
|
;offset-y = 1%
|
||||||
radius = 0.0
|
radius = 0.0
|
||||||
|
|
@ -218,7 +218,7 @@ label = %percentage_used%%
|
||||||
|
|
||||||
[module/network]
|
[module/network]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = wlp2s0
|
interface = wlp0s20f3
|
||||||
interval = 3.0
|
interval = 3.0
|
||||||
|
|
||||||
label = %essid%
|
label = %essid%
|
||||||
|
|
@ -259,7 +259,7 @@ format-disconnected =
|
||||||
type = internal/date
|
type = internal/date
|
||||||
interval = 5
|
interval = 5
|
||||||
|
|
||||||
date = " %Y-%m-%d"
|
date = " %Y-%m-%d "
|
||||||
|
|
||||||
time = %H:%M
|
time = %H:%M
|
||||||
time-alt = %H:%M:%S
|
time-alt = %H:%M:%S
|
||||||
|
|
@ -331,9 +331,9 @@ bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
battery = BAT1
|
battery = BAT0
|
||||||
adapter = ADP1
|
adapter = ADP1
|
||||||
full-at = 98
|
full-at = 100
|
||||||
|
|
||||||
format-charging = <animation-charging> <label-charging>
|
format-charging = <animation-charging> <label-charging>
|
||||||
format-charging-underline = #ffb52a
|
format-charging-underline = #ffb52a
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -312,6 +312,7 @@ map L history_go 1
|
||||||
map gh cd ~
|
map gh cd ~
|
||||||
map gi cd ~/Github
|
map gi cd ~/Github
|
||||||
map gd cd ~/Desktop
|
map gd cd ~/Desktop
|
||||||
|
map gf cd ~/.config
|
||||||
|
|
||||||
# External Programs
|
# External Programs
|
||||||
map I edit
|
map I edit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue