Browse Source

Resolves #36

Also added Spotify song name as i3block to Samsung monitor.
red-hat-laptop
Kevin Mok 7 years ago
parent
commit
3914b7ff36
  1. 18
      configs/NZXT/i3.conf
  2. 8
      configs/NZXT/i3blocks.conf
  3. 16
      configs/NZXT/sam-i3blocks.conf
  4. 3
      configs/set-configs.sh

18
configs/NZXT/i3.conf

@ -117,6 +117,7 @@ bindsym $mod+F2 workspace $ws2; exec terminator
set $ws3 "3 "
workspace $ws3 output $benq
bindsym $mod+F3 workspace $ws3; exec google-chrome
set $ws4 "4 "
workspace $ws4 output $samsung
@ -186,11 +187,6 @@ bindsym $mod+control+9 move container to workspace $ws9; workspace $ws9
bindsym $mod+control+0 move container to workspace $ws10; workspace $ws10
bindsym $mod+control+Shift+1 move container to workspace $ws11
# }}} move container to ws #
# gaps {{{ #
# gaps inner 10
# gaps outer 20
# }}} gaps #
# }}} workspace #
# reload config/computer {{{ #
@ -210,6 +206,16 @@ bindsym $mod+control+j resize shrink height 10 px or 10 ppt
bindsym $mod+control+l resize shrink width 10 px or 10 ppt
# }}} resizing windows #
# gaps {{{ #
for_window [class="^.*"] border pixel 0
smart_gaps on
gaps inner 10
gaps outer 15
bindsym control+shift+plus gaps inner all plus 5;gaps outer all plus 5
bindsym control+shift+0 gaps inner all minus 5;gaps outer all minus 5
# }}} gaps #
# status bar {{{ #
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
@ -223,8 +229,10 @@ bar {
bar {
output $samsung
status_command i3blocks -c ~/.config/sam-i3blocks/sam-i3blocks.conf
tray_output none
font pango:$sb_font 22
# font pango:monospace 22, FontAwesome 22
}
# }}} status bar #

8
configs/NZXT/i3blocks.conf

@ -52,10 +52,10 @@ label=
min_width=CPU: 100.00%
color=#adeaea
[wifi]
label=🖧
instance=wlp4s0
interval=10
# [wifi]
# label=
# instance=wlp4s0
# interval=10
[name]
color=#cc5490

16
configs/NZXT/sam-i3blocks.conf

@ -0,0 +1,16 @@
# Global properties {{{ #
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
align=center
command=/usr/share/i3blocks/$BLOCK_NAME
separator=true
separator_block_width=25
markup=pango
# }}} Global properties #
[spotify]
command=python /usr/share/i3blocks/spotify.py
label=
# label=
color=#009900
interval=10

3
configs/set-configs.sh

@ -1,7 +1,8 @@
# Get directory variables from script.
. ../dirs.sh
# List of config files in system config dir that I want to link to.
config_files="neofetch/config.conf i3/config i3blocks/i3blocks.conf"
config_files="neofetch/config.conf i3/config i3blocks/i3blocks.conf "\
"sam-i3blocks/sam-i3blocks.conf"
for file in $config_files; do
# Remove system file.
rm "$sys_config_dir"/"$file"

Loading…
Cancel
Save