Browse Source

Setup compton for bar transparency and effects

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
6d3639aa96
  1. 3
      aliases/zsh_aliases
  2. 60
      configs/i3/config
  3. 5
      dotfiles/Xresources
  4. 10
      txt/key_dirs.txt
  5. 2
      txt/key_files.txt
  6. 1
      txt/pacman-pkgs/pacman-pkgs.txt

3
aliases/zsh_aliases

@ -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 ..."

60
configs/i3/config

@ -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
set $inner_gaps 30
for_window [class="^.*"] border pixel 3
set $inner_gaps 35
set $outer_gaps 5 set $outer_gaps 5
# gaps inner $inner_gaps
# gaps outer $outer_gaps
gaps inner 0
gaps outer 0
gaps inner $inner_gaps
gaps outer $outer_gaps
# gaps inner 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,33 +356,40 @@ bar {
# }}} benq bar # # }}} benq bar #
# # # display {{{ #
# bar {
# font pango:$sb_font 23
# tray_output none
# status_command i3blocks -c ~/.config/i3blocks/i3blocks-display.conf
# output $samsung
# wheel_up_cmd nop
# wheel_down_cmd nop
# }
# # }}} display #
# samsung bar {{{ # # samsung bar {{{ #
# a0 = 160
set $samsung_transparency 99
bar { bar {
output $samsung output $samsung
font pango:$sb_font 25
# output $benq # output $benq
i3bar_command i3bar -t
colors {
background #000000$samsung_transparency
}
status_command i3blocks -c ~/.config/sam-i3blocks/sam-i3blocks.conf status_command i3blocks -c ~/.config/sam-i3blocks/sam-i3blocks.conf
tray_output none tray_output none
font pango:$sb_font 23
wheel_up_cmd nop wheel_up_cmd nop
wheel_down_cmd nop wheel_down_cmd nop
} }
# }}} samsung bar # # }}} samsung bar #
# # # display {{{ #
# bar {
# i3bar_command i3bar -t
# font pango:$sb_font 23
# tray_output none
# status_command i3blocks -c ~/.config/i3blocks/i3blocks-display.conf
# output $samsung
# wheel_up_cmd nop
# wheel_down_cmd nop
# }
# # }}} display #
# }}} status bar # # }}} status bar #
# mod key/font {{{ # # mod key/font {{{ #

5
dotfiles/Xresources

@ -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: 30
! URxvt*shading: 200
! URxvt*shading: 0 (blackest) to 99 black, 101 to 200 (whitest) white
URxvt*shading: 40
/* }}} transparency */ /* }}} transparency */

10
txt/key_dirs.txt

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

2
txt/key_files.txt

@ -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

1
txt/pacman-pkgs/pacman-pkgs.txt

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

Loading…
Cancel
Save