Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pad92 committed Jul 25, 2022
1 parent 277f8d9 commit 32ad61a
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 64 deletions.
122 changes: 61 additions & 61 deletions .config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,28 @@ bindsym $mod+p exec /usr/bin/gnome-screenshot -i
# focus_follows_mouse no

# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# workspace back and forth (with/without active container)
workspace_auto_back_and_forth yes
Expand Down Expand Up @@ -127,8 +127,8 @@ bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show

#navigate workspaces next / previous
bindsym $mod+Ctrl+Right workspace next
bindsym $mod+Ctrl+Left workspace prev
bindsym $mod+Ctrl+Right workspace next
bindsym $mod+Ctrl+Left workspace prev

# Workspace names
# to display names or symbols instead of plain workspace numbers you can use
Expand Down Expand Up @@ -166,44 +166,43 @@ bindsym $mod+Shift+7 move container to workspace number 7; workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8; workspace number 8

# Open applications on specific workspaces
# assign [class="Thunderbird"] number 1
# assign [class="Pale moon"] number 2
# assign [class="Pcmanfm"] number 3
# assign [class="Skype"] number 5
assign [class="google-chrome"] number 1
assign [class="Teams"] number 2
assign [class="Spotify"] number 2

# Open specific applications in floating mode
for_window [class="(?i)System-config-printer.py"] floating enable
for_window [class="(?i)virtualbox"] floating enable
for_window [class="1Password"] floating enable, border normal, resize set 640 480, move to scratchpad; scratchpad show
for_window [class="Clipgrab"] floating enable
for_window [class="Evolution-alarm-notify"] floating enable
for_window [class="GParted"] floating enable
for_window [class="Galculator"] floating enable resize set 640 480
for_window [class="Gnome-screenshot"] floating enable
for_window [class="Lightdm-settings"] floating enable
for_window [class="Lxappearance"] floating enable
for_window [class="Nitrogen"] floating enable
for_window [class="Oblogout"] fullscreen enable
for_window [class="openfortiGUI"] floating enable
for_window [class="Pamac-manager"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="Qtconfig-qt4"] floating enable
for_window [class="Simple-scan"] floating enable
for_window [class="Skype"] floating enable
for_window [class="Steam"] floating enable
for_window [class="Timeset-gui"] floating enable
for_window [class="Xfburn"] floating enable
for_window [class="calamares"] floating enable
for_window [class="fpakman"] floating enable
for_window [class="octopi"] floating enable
for_window [class="qt5ct"] floating enable
for_window [title="About Pale Moon"] floating enable
for_window [title="File Transfer*"] floating enable
for_window [title="MuseScore: Play Panel"] floating enable
for_window [title="alsamixer"] floating enable
for_window [title="i3_help"] floating enable
for_window [window_role="PictureInPicture"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [class="(?i)System-config-printer.py"] floating enable
for_window [class="(?i)virtualbox"] floating enable
for_window [class="1Password"] floating enable, resize set 640 480, move to scratchpad; scratchpad show
for_window [class="Clipgrab"] floating enable
for_window [class="Evolution-alarm-notify"] floating enable
for_window [class="GParted"] floating enable
for_window [class="Galculator"] floating enable, resize set 640 480
for_window [class="Gnome-screenshot"] floating enable
for_window [class="Lightdm-settings"] floating enable
for_window [class="Lxappearance"] floating enable
for_window [class="Nitrogen"] floating enable
for_window [class="Oblogout"] fullscreen enable
for_window [class="openfortiGUI"] floating enable
for_window [class="Pamac-manager"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="Qtconfig-qt4"] floating enable
for_window [class="Simple-scan"] floating enable
for_window [class="Skype"] floating enable
for_window [class="Steam"] floating enable
for_window [class="Timeset-gui"] floating enable
for_window [class="Xfburn"] floating enable
for_window [class="calamares"] floating enable
for_window [class="fpakman"] floating enable
for_window [class="octopi"] floating enable
for_window [class="qt5ct"] floating enable
for_window [title="About Pale Moon"] floating enable
for_window [title="File Transfer*"] floating enable
for_window [title="MuseScore: Play Panel"] floating enable
for_window [title="alsamixer"] floating enable
for_window [title="i3_help"] floating enable
for_window [window_role="PictureInPicture"] floating enable
for_window [window_role="pop-up"] floating enable

# switch to workspace with urgent window automatically
for_window [urgent=latest] focus
Expand Down Expand Up @@ -274,6 +273,7 @@ exec --no-startup-id ~/.dotfiles/bin/greenclip-v4.2 daemon
exec --no-startup-id start-pulseaudio-x11
exec --no-startup-id pa-applet
exec --no-startup-id /usr/libexec/gsd-xsettings

## Base16 Material
# Author: Nate Peterson
#
Expand Down Expand Up @@ -328,13 +328,13 @@ bar {
# hide/unhide i3status bar
bindsym $mod+m bar mode toggle

# Property Name Border BG Text Indicator Child Border
client.focused $base05 $base0D $base00 $base0D $base0C
client.focused_inactive $base01 $base01 $base05 $base03 $base01
client.unfocused $base01 $base00 $base05 $base01 $base01
client.urgent $base08 $base08 $base00 $base08 $base08
client.placeholder $base00 $base00 $base05 $base00 $base00
client.background $base07
#PropertyName Border BG Text Indicator ChildBorder
client.focused $base05 $base0D $base00 $base0D $base0C
client.focused_inactive $base01 $base01 $base05 $base03 $base01
client.unfocused $base01 $base00 $base05 $base01 $base01
client.urgent $base08 $base08 $base00 $base08 $base08
client.placeholder $base00 $base00 $base05 $base00 $base00
client.background $base07

#############################
### settings for i3-gaps: ###
Expand Down
4 changes: 4 additions & 0 deletions .xinitrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ fi

[ -f ~/.xprofile ] && . ~/.xprofile

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec ~/.screenlayout/modseting-nvidia.sh
exec nitrogen --restore
exec i3 >> ~/.cache/i3.log 2>> ~/.cache/i3.err
8 changes: 5 additions & 3 deletions bin/xrandr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ LISTMONITORS=$(xrandr --current --listmonitors | grep -v '^Monitors' | awk '{pri

[ -f /proc/acpi/button/lid/LID0/state ] && LID_STATE=$(grep -oE '[^ ]+$' /proc/acpi/button/lid/LID0/state)

# xrandr --setprovideroutputsource modesetting NVIDIA-0


case "${LISTMONITORS}" in
'DP-3 HDMI-1')
xrandr --dpi 96 \
Expand All @@ -29,12 +32,11 @@ case "${LISTMONITORS}" in
;;
'DP-1-1 DP-3 eDP-1')
xrandr --dpi 96 \
--output eDP-1 --auto --scale .5x.5 \
--output DP-3 --primary --auto --left-of eDP-1 \
--output eDP-1 --off \
--output DP-3 --primary --auto \
--output DP-1-1 --auto --left-of DP-3 --rotate right
i3-msg "workspace 1, move workspace to output DP-3"
i3-msg "workspace 2, move workspace to output DP-1-1"
i3-msg "workspace 3, move workspace to output eDP-1"
pkill xautolock ; xset s off ; xset -dpms ; xset s noblank
;;
'eDP1')
Expand Down

0 comments on commit 32ad61a

Please sign in to comment.