From cff2543c50b79b561ed784171b0d24f8719fbc9e Mon Sep 17 00:00:00 2001 From: eneller Date: Wed, 1 Mar 2023 09:33:40 +0100 Subject: [PATCH] DE improvements --- .config/i3/conf.d/theme | 46 +++++++++++++++ .config/i3/config | 59 ++++--------------- .config/ulauncher-system/entries/default.json | 7 ++- .mozilla/firefox/profiles.ini | 8 +-- .profile | 18 ------ 5 files changed, 65 insertions(+), 73 deletions(-) create mode 100644 .config/i3/conf.d/theme diff --git a/.config/i3/conf.d/theme b/.config/i3/conf.d/theme new file mode 100644 index 0000000..f7a22ec --- /dev/null +++ b/.config/i3/conf.d/theme @@ -0,0 +1,46 @@ +# vim: filetype=i3config + +font pango:Sans Regular 12 +# THEME, should use same colors as .profile +set $black #272822 +set $white #FFFFFF +set $red #F92672 +set $blue #66D9EF +set $green #A6E22E +set $orange #FD971F +set $yellow #E6DB74 +set $purple #AE81FF + +set $allblack #000000 + +# class border bg. text indicator child_border +client.focused $blue $black $blue $blue $blue +client.focused_inactive $black $black $blue $black $black +client.unfocused $black $black $white $black $black +client.background $black + + +bar { + i3bar_command i3bar + status_command i3status +#--config $XDG_CONFIG_HOME/i3/i3status.conf + mode dock + position top + #tray_output primary +# font xft:Jetbrains mono 20 + strip_workspace_numbers yes + workspace_buttons yes + + colors { + background #000000 + #statusline #F9FAF9 + #separator #454947 + # border bg text + focused_workspace $allblack $blue $allblack + #active_workspace #FFFFFF $black #FFFFFF + #inactive_workspace #FFFFFF $black #FFFFFF + #binding_mode #16a085 #2C2C2C #F9FAF9 + urgent_workspace $red $black $red + } +} + diff --git a/.config/i3/config b/.config/i3/config index 6b9b151..ef2a69f 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -1,4 +1,5 @@ # vim: filetype=i3config +include ~/.config/i3/conf.d/* # this config is based on github.com:LukeSmithxyz/voidrice 884dcbdc4792eed95e558af84491eb3100d314a2 # to immediately apply a new config, run `i3-msg reload; i3-msg restart` @@ -7,55 +8,21 @@ # You can set these variables in ~/.profile or ~/.bash_profile if you have it as below: +# No focus on mouse over (allows scrolling without changing focus) +focus_follows_mouse no +# remove title bar +default_border pixel 1 +default_floating_border pixel 1 # set modifier key, Mod4 is super (windows), Mod1 = Alt key set $mod Mod4 bindsym $mod+F12 restart;reload -# THEME, should use same colors as .profile -set $black #272822 -set $white #FFFFFF -set $red #F92672 -set $blue #66D9EF -set $green #A6E22E -set $orange #FD971F -set $yellow #E6DB74 -set $purple #AE81FF -set $allblack #000000 - -# power options -set $shutdown shutdown -h now -set $reboot reboot -set $hibernate sudo -A systemctl suspend # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod bindsym $mod+d floating toggle -font pango:Sans Regular 12 -bar { - i3bar_command i3bar - status_command i3status -#--config $XDG_CONFIG_HOME/i3/i3status.conf - mode dock - position top - #tray_output primary -# font xft:Jetbrains mono 20 - strip_workspace_numbers yes - workspace_buttons yes - - colors { - background #000000 - #statusline #F9FAF9 - #separator #454947 - # border bg text - focused_workspace $allblack $blue $allblack - #active_workspace #FFFFFF $black #FFFFFF - #inactive_workspace #FFFFFF $black #FFFFFF - #binding_mode #16a085 #2C2C2C #F9FAF9 - urgent_workspace $red $black $red - } -} # DROPDOWN @@ -97,11 +64,6 @@ bindsym $mod+t layout toggle tabbed splith bindsym $mod+Shift+v split h;exec notify-send 'tile horizontally |' bindsym $mod+v split v;exec notify-send 'tile vertically -' -# No focus on mouse over (allows scrolling without changing focus) -focus_follows_mouse no -# remove title bar -default_border pixel 1 -default_floating_border pixel 1 # ARROW KEYS bindsym $mod+Left move workspace to output left @@ -156,20 +118,19 @@ bindsym $mod+Shift+0 move container to workspace $ws10 bindsym $mod+Return exec --no-startup-id "ulauncher-toggle" bindsym $mod+space exec --no-startup-id $TERMINAL bindsym $mod+w exec --no-startup-id $BROWSER +bindsym $mod+Shift+w exec --no-startup-id "$BROWSER -profile ~/.mozilla/firefox/2ustnzbw.shopping" bindsym $mod+e exec --no-startup-id $EXPLORER bindsym $mod+m exec --no-startup-id $MAILCLIENT bindsym $mod+Escape exec --no-startup-id $LOCKSCREEN +# TODO add import path/to/img.png to make a screenshot +bindsym --release $mod+s exec "import ~/Pictures/screenshots/$(date '+%y_%m_%d-%H_%M_%S').png" +bindsym $mod+Shift+s exec "import -window root ~/Pictures/screenshots/$(date 'import ~/Pictures/screenshots/$(date '+%y_%m_%d-%H_%M_%S').png" # i3lock for locking, i3-msg exit for logout # Show selection: #bindsym $mod+Insert exec --no-startup-id showclip -# class border bg. text indicator child_border -client.focused $blue $black $blue $blue $blue -client.focused_inactive $black $black $blue $black $black -client.unfocused $black $black $white $black $black -client.background $black # AUTOSTART # start polkit for pacman diff --git a/.config/ulauncher-system/entries/default.json b/.config/ulauncher-system/entries/default.json index 2cdc85a..9d80584 100644 --- a/.config/ulauncher-system/entries/default.json +++ b/.config/ulauncher-system/entries/default.json @@ -1,8 +1,11 @@ { "lock": { - "command": "i3lock & sleep 5 && xset dpms force off" + "command": "i3lock & sleep 2 && xset dpms force off" }, "suspend": { - "command": "i3lock & systemctl suspend" + "command": "i3lock & sleep 2 && systemctl suspend" + }, + "hibernate": { + "command": "i3lock & sleep 2 && systemctl hibernate" } } diff --git a/.mozilla/firefox/profiles.ini b/.mozilla/firefox/profiles.ini index f4223c8..d88967f 100644 --- a/.mozilla/firefox/profiles.ini +++ b/.mozilla/firefox/profiles.ini @@ -3,15 +3,15 @@ Default=4vd8uypc.default-release Locked=1 [Profile1] -Name=default +Name=shopping IsRelative=1 -Path=ux957z6u.default -Default=1 +Path=2ustnzbw.shopping [Profile0] -Name=default-release +Name=work-default IsRelative=1 Path=4vd8uypc.default-release +Default=1 [General] StartWithLastProfile=1 diff --git a/.profile b/.profile index a0e257a..b625b91 100644 --- a/.profile +++ b/.profile @@ -1,7 +1,5 @@ # Basic config xset r rate 200 35 # set key repeat delay and rate -# check for autorandr known configs -autorandr --check # Clean Up Home Directory export XDG_CONFIG_HOME="$HOME/.config" export XDG_CACHE_HOME="$HOME/.cache" @@ -38,21 +36,6 @@ export PURPLE="#AE81FF" export FONT="Noto" export FONTSIZE="12" -## define the font for dmenu to be used -DMENU_FN="$FONT-$FONTSIZE" -## background colour for unselected menu-items -DMENU_NB="#000000" -## textcolour for unselected menu-items -DMENU_NF=$WHITE -## background colour for selected menu-items -DMENU_SB=$BLUE -## textcolour for selected menu-items -DMENU_SF="#000000" -## command for the terminal application to be used: -TERMINAL_CMD="alacritty -e" -## export our variables -DMENU_OPTIONS="-fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB" - # default applications export EDITOR=/usr/bin/nvim export BROWSER=/usr/bin/firefox @@ -60,4 +43,3 @@ export TERMINAL=/usr/bin/alacritty export EXPLORER=/usr/bin/thunar export MAILCLIENT=/usr/bin/thunderbird export LAUNCHER="ulauncher-toggle" -export LOCKSCREEN="i3lock"