Skip to content

Commit

Permalink
fixs
Browse files Browse the repository at this point in the history
  • Loading branch information
pad92 committed Jun 9, 2022
1 parent f89be66 commit 0ea8739
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
1 change: 1 addition & 0 deletions .Xresources
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Xft.dpi: 220
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Expand Down
7 changes: 3 additions & 4 deletions .config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ bindsym Print exec --no-startup-id i3-scrot
#bindsym $mod+Print --release exec --no-startup-id i3-scrot -w
#bindsym $mod+p --release exec --no-startup-id i3-scrot -w
bindsym $mod+p exec /usr/bin/gnome-screenshot -i
bindsym $mod+shift+p exec scrot -u '%Y%m%d-%H%M%S.png' -e 'mv $f ~/Pictures/Screenshots/'
#bindsym $mod+shift+p exec scrot -u '%Y%m%d-%H%M%S.png' -e 'mv $f ~/Pictures/Screenshots/'
#bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s
bindsym $mod+Shift+p --release exec --no-startup-id i3-scrot -s
#bindsym $mod+Shift+p --release exec --no-startup-id i3-scrot -s
bindsym $mod+Ctrl+x --release exec --no-startup-id xkill

# focus_follows_mouse no
Expand Down Expand Up @@ -285,7 +285,6 @@ exec --no-startup-id xautolock -time 10 -locker blurlock
exec --no-startup-id greenclip daemon
exec --no-startup-id start-pulseaudio-x11
exec --no-startup-id pa-applet
exec --no-startup-id usbguard-applet-qt

## Base16 Material
# Author: Nate Peterson
Expand All @@ -312,7 +311,7 @@ set $base0F #FF5370

# Start i3bar to display a workspace bar (plus the system information i3status if available)
bar {
i3bar_command i3bar
#i3bar_command i3bar
status_command i3status -c ~/.dotfiles/.config/i3status/config_$(hostnamectl hostname) | ~/.dotfiles/.config/i3status/i3spotifystatus/pystatus.py
position top

Expand Down
2 changes: 1 addition & 1 deletion .zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export EDITOR='vim'
export ELECTRON_TRASH=gio

if [ -n "$DESKTOP_SESSION" ];then
eval $(gnome-keyring-daemon --start)
eval $(gnome-keyring-daemon --start 2>/dev/null)
export SSH_AUTH_SOCK
fi
20 changes: 10 additions & 10 deletions bin/xrandr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ case "${LISTMONITORS}" in
i3-msg "workspace 2, move workspace to output HDMI-0"
fi
;;
'DP1 DP3-1')
RES_DP1=$(xrandr --current | grep -A1 DP1 | tail -1 | awk '{print $1}')
RES_DP31=$(xrandr --current | grep -A1 DP3-1 | tail -1 | awk '{print $1}')
'DP1-1 DP3 eDP1')
RES_DP11=$(xrandr --current | grep -A1 DP1-1 | tail -1 | awk '{print $1}')
RES_DP3=$(xrandr --current | grep -A1 DP3 | tail -1 | awk '{print $1}')

# Home AOC +Benq / laptop docked on dell
if [ "x${RES_DP31}" = "x2560x1440" ] && [ "x${RES_DP1}" = "x1920x1080" ] && [ "x${LID_STATE}" = "xclosed" ]; then
#if [ "x${RES_DP3}" = "x2560x1440" ] && [ "x${RES_DP11}" = "x1920x1080" ] && [ "x${LID_STATE}" = "xclosed" ]; then
xrandr --dpi 96 --output eDP1 --off \
--output DP1 --mode ${RES_DP1} --pos 0x0 --rotate right \
--output DP3-1 --primary --mode ${RES_DP31} --pos 1080x0 --rotate normal
i3-msg "workspace 1, move workspace to output DP3-1"
i3-msg "workspace 2, move workspace to output DP1"
--output DP1-1 --mode ${RES_DP11} --pos 0x0 --rotate right \
--output DP3 --primary --mode ${RES_DP3} --pos 1080x0 --rotate normal
i3-msg "workspace 1, move workspace to output DP3"
i3-msg "workspace 2, move workspace to output DP1-1"
pkill xautolock ; xset s off ; xset -dpms ; xset s noblank
nmcli radio wifi off
fi
#nmcli radio wifi off
#fi
;;
'eDP1')
DPI=144
Expand Down

0 comments on commit 0ea8739

Please sign in to comment.