Setup compton for bar transparency and effects

This commit is contained in:
2018-12-04 11:35:37 -05:00
parent 146ffb643e
commit 6d3639aa96
6 changed files with 51 additions and 30 deletions

View File

@@ -25,7 +25,7 @@ alias cs='printf "\033c"'
alias hst="history" alias hst="history"
alias nf="cs && neofetch | lolcat" alias nf="cs && neofetch | lolcat"
# nf # nf
alias rur="xrdb ~/.Xresources" alias ru="xrdb ~/.Xresources"
# list file sizes in megabytes with depth 1 # list file sizes in megabytes with depth 1
alias dum="sudo du -d 1 -B M" alias dum="sudo du -d 1 -B M"
@@ -62,6 +62,7 @@ if [ -f ~/.last_dir ]
then cd `cat ~/.last_dir` then cd `cat ~/.last_dir`
fi fi
alias rmr="rm -rf" alias rmr="rm -rf"
alias mdp="mkdir -p"
alias "f."="f .." alias "f."="f .."
alias "f.."="f ..." alias "f.."="f ..."

View File

@@ -5,6 +5,7 @@ set $def_term "urxvt"
set $swex "sudo ~/Downloads/swex.appimage" set $swex "sudo ~/Downloads/swex.appimage"
exec redshift -O 2000 exec redshift -O 2000
# random bg # random bg
exec compton
exec wal -i "$HOME/Pictures/Backgrounds/dim" exec wal -i "$HOME/Pictures/Backgrounds/dim"
exec imwheel exec imwheel
exec xmodmap ~/.Xmodmap exec xmodmap ~/.Xmodmap
@@ -281,13 +282,19 @@ bindsym $mod+Shift+5 move container to workspace $ws15; workspace $ws15
# }}} workspace # # }}} workspace #
# reload config/computer {{{ # # reload config/computer {{{ #
bindsym $mod+Shift+s exec systemctl suspend bindsym $mod+Shift+s exec systemctl suspend
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+control+r restart bindsym $mod+control+r restart
# reload the configuration file # reload the configuration file
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
# bindsym $mod+control+r reload
bindsym $mod+control+u exec xrdb ~/.Xresources
# exit i3 (logs you out of your X session) # 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'" 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'"
# }}} reload config # # }}} reload config #
# resizing windows {{{ # # resizing windows {{{ #
@@ -300,14 +307,14 @@ bindsym $mod+control+l resize shrink width 3 px or 3 ppt
# gaps {{{ # # gaps {{{ #
# remove window titlebars # remove window titlebars
for_window [class="^.*"] border pixel 4 for_window [class="^.*"] border pixel 3
set $inner_gaps 30 set $inner_gaps 35
set $outer_gaps 5 set $outer_gaps 5
# gaps inner $inner_gaps gaps inner $inner_gaps
# gaps outer $outer_gaps gaps outer $outer_gaps
gaps inner 0 # gaps inner 0
gaps outer 0 # gaps outer 0
# other gaps {{{ # # other gaps {{{ #
@@ -329,11 +336,17 @@ bindsym control+shift+0 gaps inner all set 0;gaps outer all set 0
# Start i3bar to display a workspace bar (plus the system information i3status # Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available) # finds out, if available)
set $sb_font Hack NF Bold set $sb_font Hack NF Bold
# 0 (transparent) -> 255 (opaque) in hex,
# benq bar {{{ # # benq bar {{{ #
set $benq_transparency 64
bar { bar {
i3bar_command i3bar -t
font pango:$sb_font 20 font pango:$sb_font 20
colors {
background #000000$benq_transparency
}
tray_output none tray_output none
status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
output $benq output $benq
@@ -343,9 +356,30 @@ bar {
# }}} benq bar # # }}} benq bar #
# samsung bar {{{ #
# a0 = 160
set $samsung_transparency 99
bar {
output $samsung
font pango:$sb_font 25
# output $benq
i3bar_command i3bar -t
colors {
background #000000$samsung_transparency
}
status_command i3blocks -c ~/.config/sam-i3blocks/sam-i3blocks.conf
tray_output none
wheel_up_cmd nop
wheel_down_cmd nop
}
# }}} samsung bar #
# # # display {{{ # # # # display {{{ #
# bar { # bar {
# i3bar_command i3bar -t
# font pango:$sb_font 23 # font pango:$sb_font 23
# tray_output none # tray_output none
# status_command i3blocks -c ~/.config/i3blocks/i3blocks-display.conf # status_command i3blocks -c ~/.config/i3blocks/i3blocks-display.conf
@@ -356,20 +390,6 @@ bar {
# # }}} display # # # }}} display #
# samsung bar {{{ #
bar {
output $samsung
# output $benq
status_command i3blocks -c ~/.config/sam-i3blocks/sam-i3blocks.conf
tray_output none
font pango:$sb_font 23
wheel_up_cmd nop
wheel_down_cmd nop
}
# }}} samsung bar #
# }}} status bar # # }}} status bar #
# mod key/font {{{ # # mod key/font {{{ #

View File

@@ -9,9 +9,8 @@ URxvt*inheritPixmap: true
! URxvt*transparent: false ! URxvt*transparent: false
URxvt*transparent: true URxvt*transparent: true
! !
! URxvt*shading: 0 to 99 darkens, 101 to 200 lightens ! URxvt*shading: 0 (blackest) to 99 black, 101 to 200 (whitest) white
URxvt*shading: 30 URxvt*shading: 40
! URxvt*shading: 200
/* }}} transparency */ /* }}} transparency */

View File

@@ -23,10 +23,10 @@ wo ~/Documents/workout-logs/11
# sch {{{ * # sch {{{ *
sc ~/Documents/school sc ~/school
# st ~/Documents/school/sta st ~/school/sta
2 ~/Documents/school/236 2 ~/school/236
a3 ~/Documents/school/latex-notes/236/a3 a3 ~/school/latex-notes/236/a3
3 ~/Documents/school/343 3 ~/school/343
# }}} sch * # }}} sch *

View File

@@ -4,7 +4,7 @@
d ~/linux-config/txt/key_dirs.txt d ~/linux-config/txt/key_dirs.txt
f ~/linux-config/txt/key_files.txt f ~/linux-config/txt/key_files.txt
i ~/.config/i3blocks/i3blocks.conf i ~/.config/i3blocks/i3blocks.conf
p ~/linux-config/txt/pacman-pkgs/auto-pacman-pkgs.txt p ~/linux-config/txt/pacman-pkgs/pacman-pkgs.txt
r ~/.config/ranger/rc.conf r ~/.config/ranger/rc.conf
sr ~/linux-config/configs/ranger/shortcuts.conf sr ~/linux-config/configs/ranger/shortcuts.conf
ss ~/.shortcuts ss ~/.shortcuts

View File

@@ -2,6 +2,7 @@ alsa-utils
bc bc
chromium chromium
cloc cloc
compton
dhcpcd dhcpcd
dialog dialog
dmenu dmenu