Removing i3status-rs
Working on docking and undocking scripts
This commit is contained in:
parent
ff48bd6f9a
commit
7955ee9b3e
|
@ -8,8 +8,10 @@ set $mod Mod4
|
||||||
#workspace_layout stacking
|
#workspace_layout stacking
|
||||||
|
|
||||||
# Configure border style <normal|1pixel|pixel xx|none|pixel>
|
# Configure border style <normal|1pixel|pixel xx|none|pixel>
|
||||||
new_window pixel 0
|
new_window none
|
||||||
new_float normal
|
#new_window pixel 0
|
||||||
|
#new_float normal
|
||||||
|
new_float none
|
||||||
|
|
||||||
# Hide borders
|
# Hide borders
|
||||||
hide_edge_borders none
|
hide_edge_borders none
|
||||||
|
@ -155,10 +157,9 @@ bindsym $mod+Ctrl+0 exec --no-startup-id ~/.i3/workspaces/ws00.sh
|
||||||
|
|
||||||
# Open specific applications in floating mode
|
# Open specific applications in floating mode
|
||||||
for_window [class="^.*"] border pixel 0
|
for_window [class="^.*"] border pixel 0
|
||||||
for_window [class="Nitrogen"] floating enable sticky enable border normal
|
for_window [class="Nitrogen"] floating enable sticky enable border none
|
||||||
for_window [class="feh"] floating enable sticky enable border normal
|
for_window [class="feh"] floating enable sticky enable border none
|
||||||
for_window [class="mpv"] floating enable sticky enable border normal
|
for_window [class="mpv"] floating enable sticky enable border none
|
||||||
for_window [class="vlc"] floating enable sticky enable border normal
|
|
||||||
for_window [class="^jetbrains-.+"][window_type=dialog] focus
|
for_window [class="^jetbrains-.+"][window_type=dialog] focus
|
||||||
|
|
||||||
# reload the configuration file
|
# reload the configuration file
|
||||||
|
@ -171,12 +172,12 @@ bindsym $mod+Shift+r restart
|
||||||
bindsym $mod+l exec --no-startup-id light-locker-command -l
|
bindsym $mod+l exec --no-startup-id light-locker-command -l
|
||||||
|
|
||||||
# Autostart applications
|
# Autostart applications
|
||||||
exec --no-startup-id nitrogen --restore; sleep 1; compton -b
|
exec --no-startup-id compton --config /home/jfm/.config/compton/compton.conf
|
||||||
|
exec --no-startup-id nitrogen --restore
|
||||||
exec --no-startup-id nm-applet
|
exec --no-startup-id nm-applet
|
||||||
exec --no-startup-id pasystray
|
exec --no-startup-id pasystray
|
||||||
#exec --no-startup-id blueman-applet
|
#exec --no-startup-id blueman-applet
|
||||||
exec --no-startup-id light-locker
|
exec --no-startup-id light-locker
|
||||||
exec --no-startup-id compton --config /home/jfm/.config/compton/compton.conf
|
|
||||||
|
|
||||||
# Color palette used for the terminal ( ~/.Xresources file )
|
# Color palette used for the terminal ( ~/.Xresources file )
|
||||||
# Colors are gathered based on the documentation:
|
# Colors are gathered based on the documentation:
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ $(iwgetid -r) = *adazio* ]];
|
xrandr --output DP1-2 --auto
|
||||||
|
xrandr --output DP1-3 --auto
|
||||||
|
|
||||||
|
if [[ $(iwgetid -r) = *adazio* ]];
|
||||||
then
|
then
|
||||||
~/.i3/scripts/work-monitors.sh &
|
~/.i3/scripts/work-monitors.sh &
|
||||||
~/.i3/scripts/work-layout.sh &
|
~/.i3/scripts/work-layout.sh &
|
||||||
fi
|
fi
|
||||||
if [[ $(iwgetid -r) = *moerks.dk* ]];
|
if [[ $(iwgetid -r) = *moerks.dk* ]];
|
||||||
then
|
then
|
||||||
~/.i3/scripts/home-monitors.sh &
|
~/.i3/scripts/home-monitors.sh &
|
||||||
~/.i3/scripts/home-layout.sh &
|
~/.i3/scripts/home-layout.sh &
|
||||||
|
@ -14,13 +17,19 @@ fi
|
||||||
sleep 1
|
sleep 1
|
||||||
. ~/.i3/env
|
. ~/.i3/env
|
||||||
|
|
||||||
i3-msg "workspace 1:Comms; move workspace to output $LAPTOP"
|
echo $PRIMARY
|
||||||
i3-msg "workspace 2:Web; move workspace to output $PRIMARY"
|
echo $SECONDARY
|
||||||
i3-msg "workspace 3:IDE; move workspace to output $PRIMARY"
|
echo $LAPTOP
|
||||||
i3-msg "workspace 4:Work; move workspace to output $PRIMARY"
|
|
||||||
i3-msg "workspace 5:OC; move workspace to output $PRIMARY"
|
i3-msg "workspace 1:; move workspace to output $LAPTOP"
|
||||||
i3-msg "workspace 6:Logs; move workspace to output $SECONDARY"
|
i3-msg "workspace 2:; move workspace to output $PRIMARY"
|
||||||
i3-msg "workspace 7:Term; move workspace to output $PRIMARY"
|
i3-msg "workspace 3:; move workspace to output $PRIMARY"
|
||||||
i3-msg "workspace 8:Media; move workspace to output $SECONDARY"
|
i3-msg "workspace 4:; move workspace to output $PRIMARY"
|
||||||
|
i3-msg "workspace 5:; move workspace to output $PRIMARY"
|
||||||
|
i3-msg "workspace 6:; move workspace to output $PRIMARY"
|
||||||
|
i3-msg "workspace 7:; move workspace to output $PRIMARY"
|
||||||
|
i3-msg "workspace 8:; move workspace to output $SECONDARY"
|
||||||
|
i3-msg "workspace 9:; move workspace to output $SECONDARY"
|
||||||
|
i3-msg "workspace 0:; move workspace to output $SECONDARY"
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -12,5 +12,6 @@ export HDPI_PROFILE="laptop"
|
||||||
EOM
|
EOM
|
||||||
|
|
||||||
. $ENV_FILE
|
. $ENV_FILE
|
||||||
|
killall polybar &
|
||||||
polybar primary &
|
polybar primary &
|
||||||
polybar secondary &
|
polybar secondary &
|
||||||
|
|
|
@ -12,4 +12,5 @@ export HDPI_PROFILE="laptop"
|
||||||
EOM
|
EOM
|
||||||
|
|
||||||
. $ENV_FILE
|
. $ENV_FILE
|
||||||
|
killall polybar &
|
||||||
polybar primary &
|
polybar primary &
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
xrandr --output HDMI2 --off --output HDMI1 --off --output DP1 --off --output eDP1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP2 --off
|
xrandr --output HDMI2 --off --output HDMI1 --off --output DP1 --off --output eDP1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP2 --off --output DP1-2 --off --output DP1-3 --off
|
||||||
|
|
|
@ -10,13 +10,16 @@ echo $PRIMARY
|
||||||
echo $SECONDARY
|
echo $SECONDARY
|
||||||
echo $LAPTOP
|
echo $LAPTOP
|
||||||
|
|
||||||
i3-msg "workspace 1:Comms; move workspace to output $LAPTOP"
|
|
||||||
i3-msg "workspace 2:Web; move workspace to output $LAPTOP"
|
|
||||||
i3-msg "workspace 3:IDE; move workspace to output $LAPTOP"
|
|
||||||
i3-msg "workspace 4:Work; move workspace to output $LAPTOP"
|
|
||||||
i3-msg "workspace 5:OC; move workspace to output $LAPTOP"
|
|
||||||
i3-msg "workspace 6:Logs; move workspace to output $LAPTOP"
|
|
||||||
i3-msg "workspace 7:Term; move workspace to output $LAPTOP"
|
|
||||||
i3-msg "workspace 8:Media; move workspace to output $LAPTOP"
|
|
||||||
|
|
||||||
exit
|
|
||||||
|
i3-msg "workspace 1:; move workspace to output $LAPTOP"
|
||||||
|
i3-msg "workspace 2:; move workspace to output $LAPTOP"
|
||||||
|
i3-msg "workspace 3:; move workspace to output $LAPTOP"
|
||||||
|
i3-msg "workspace 4:; move workspace to output $LAPTOP"
|
||||||
|
i3-msg "workspace 5:; move workspace to output $LAPTOP"
|
||||||
|
i3-msg "workspace 6:; move workspace to output $LAPTOP"
|
||||||
|
i3-msg "workspace 7:; move workspace to output $LAPTOP"
|
||||||
|
i3-msg "workspace 8:; move workspace to output $LAPTOP"
|
||||||
|
i3-msg "workspace 9:; move workspace to output $LAPTOP"
|
||||||
|
i3-msg "workspace 0:; move workspace to output $LAPTOP"
|
||||||
|
exit
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
ENV_FILE="/home/jfm/.i3/env"
|
ENV_FILE="/home/jfm/.i3/env"
|
||||||
|
|
||||||
/bin/cat <<EOM >$ENV_FILE
|
/bin/cat <<EOM >$ENV_FILE
|
||||||
export LAPTOP="eDP-1"
|
export LAPTOP="eDP1"
|
||||||
export PRIMARY="DP1-2"
|
export PRIMARY="DP1-2"
|
||||||
export SECONDARY="DP1-3"
|
export SECONDARY="DP1-3"
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ export HDPI_PROFILE="laptop"
|
||||||
EOM
|
EOM
|
||||||
|
|
||||||
. $ENV_FILE
|
. $ENV_FILE
|
||||||
|
killall polybar &
|
||||||
polybar primary &
|
polybar primary &
|
||||||
polybar secondary &
|
polybar secondary &
|
||||||
polybar laptop &
|
polybar laptop &
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
icons = "awesome"
|
|
||||||
|
|
||||||
[theme]
|
|
||||||
name = "solarized-dark"
|
|
||||||
[theme.overrides]
|
|
||||||
idle_bg = "#93a1a1"
|
|
||||||
idle_fg = "#ffffff"
|
|
||||||
|
|
||||||
[[block]]
|
|
||||||
block = "custom"
|
|
||||||
command = "~/.config/i3status-rs/gpmdp.sh"
|
|
||||||
interval = 5
|
|
||||||
|
|
||||||
[[block]]
|
|
||||||
block = "memory"
|
|
||||||
display_type = "memory"
|
|
||||||
format_mem = "{Mup}%"
|
|
||||||
format_swap = "{SUp}%"
|
|
||||||
|
|
||||||
[[block]]
|
|
||||||
block = "cpu"
|
|
||||||
interval = 1
|
|
||||||
|
|
||||||
[[block]]
|
|
||||||
block = "pacman"
|
|
||||||
interval = 10
|
|
||||||
|
|
||||||
[[block]]
|
|
||||||
block = "battery"
|
|
||||||
interval = 10
|
|
||||||
show = "percentage"
|
|
||||||
|
|
||||||
[[block]]
|
|
||||||
block = "time"
|
|
||||||
interval = 60
|
|
||||||
format = "%a %d/%m %R"
|
|
|
@ -1,21 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
RUNNING_CMD=$(ps ax | grep gpmdp | wc -l)
|
|
||||||
STATUS_CMD=$(gpmdp-remote status)
|
|
||||||
CURRENT_CMD=$(gpmdp-remote current)
|
|
||||||
ICON_PLAYING='\uf001'
|
|
||||||
ICON_PAUSE='\uf04c'
|
|
||||||
|
|
||||||
if [ $RUNNING_CMD -gt 3 ]
|
|
||||||
then
|
|
||||||
if [ $STATUS_CMD == "Playing" ]
|
|
||||||
then
|
|
||||||
echo -e $ICON_PLAYING $(gpmdp-remote current)
|
|
||||||
else
|
|
||||||
current=$CURRENT_CMD
|
|
||||||
if [ ${#current} -gt 3 ]
|
|
||||||
then
|
|
||||||
echo -e $ICON_PAUSE $(gpmdp-remote current)
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
Loading…
Reference in New Issue