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

60
configs/i3/config

@ -5,6 +5,7 @@ set $def_term "urxvt"
set $swex "sudo ~/Downloads/swex.appimage"
exec redshift -O 2000
# random bg
exec compton
exec wal -i "$HOME/Pictures/Backgrounds/dim"
exec imwheel
exec xmodmap ~/.Xmodmap
@ -281,13 +282,19 @@ bindsym $mod+Shift+5 move container to workspace $ws15; workspace $ws15
# }}} workspace #
# reload config/computer {{{ #
bindsym $mod+Shift+s exec systemctl suspend
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+control+r restart
# reload the configuration file
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)
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 #
# resizing windows {{{ #
@ -300,14 +307,14 @@ bindsym $mod+control+l resize shrink width 3 px or 3 ppt
# gaps {{{ #
# 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
# 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 {{{ #
@ -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
# finds out, if available)
set $sb_font Hack NF Bold
# 0 (transparent) -> 255 (opaque) in hex,
# benq bar {{{ #
set $benq_transparency 64
bar {
i3bar_command i3bar -t
font pango:$sb_font 20
colors {
background #000000$benq_transparency
}
tray_output none
status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
output $benq
@ -343,33 +356,40 @@ 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 {{{ #
# 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
font pango:$sb_font 23
wheel_up_cmd nop
wheel_down_cmd nop
}
# }}} 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 #
# mod key/font {{{ #

5
dotfiles/Xresources

@ -9,9 +9,8 @@ URxvt*inheritPixmap: true
! URxvt*transparent: false
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 */

10
txt/key_dirs.txt

@ -23,10 +23,10 @@ wo ~/Documents/workout-logs/11
# 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 *

2
txt/key_files.txt

@ -4,7 +4,7 @@
d ~/linux-config/txt/key_dirs.txt
f ~/linux-config/txt/key_files.txt
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
sr ~/linux-config/configs/ranger/shortcuts.conf
ss ~/.shortcuts

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

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

Loading…
Cancel
Save