Browse Source

Merge branch 'master' of git.joshfabean.com:fabean/Dotfiles

master
Josh Fabean 3 years ago
parent
commit
0aa9a7cb80
10 changed files with 410 additions and 1 deletions
  1. +22
    -0
      .config/nwg-launchers/nwgbar/bar.json
  2. +8
    -0
      .config/nwg-launchers/nwgbar/images/lock.svg
  3. +8
    -0
      .config/nwg-launchers/nwgbar/images/logout.svg
  4. +10
    -0
      .config/nwg-launchers/nwgbar/images/reboot.svg
  5. +8
    -0
      .config/nwg-launchers/nwgbar/images/shutdown.svg
  6. +10
    -0
      .config/nwg-launchers/nwgbar/images/suspend.svg
  7. +34
    -0
      .config/nwg-launchers/nwgbar/style.css
  8. +298
    -0
      .config/sway/bellsprout-sway
  9. +8
    -1
      .config/waybar/config
  10. +4
    -0
      .config/waybar/style.css

+ 22
- 0
.config/nwg-launchers/nwgbar/bar.json View File

@ -0,0 +1,22 @@
[
{
"name": "Lock screen",
"exec": "swaylock",
"icon": "/home/joshfabean/.config/nwg-launchers/nwgbar/images/lock.svg"
},
{
"name": "Logout",
"exec": "swaymsg exit",
"icon": "/home/joshfabean/.config/nwg-launchers/nwgbar/images/logout.svg"
},
{
"name": "Reboot",
"exec": "systemctl reboot",
"icon": "/home/joshfabean/.config/nwg-launchers/nwgbar/images/reboot.svg"
},
{
"name": "Shutdown",
"exec": "systemctl -i poweroff",
"icon": "/home/joshfabean/.config/nwg-launchers/nwgbar/images/shutdown.svg"
}
]

+ 8
- 0
.config/nwg-launchers/nwgbar/images/lock.svg View File

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; }
</style>
</defs>
<path style="fill:currentColor" class="ColorScheme-Text" d="M 8 1 C 5.784 1 4 2.8216 4 5.0625 L 4 7 L 3 7 C 2.446 7 2 7.446 2 8 L 2 14 C 2 14.554 2.446 15 3 15 L 13 15 C 13.554 15 14 14.554 14 14 L 14 8 C 14 7.446 13.554 7 13 7 L 12 7 L 12 5.0625 C 12 2.8225 10.216 1 8 1 z M 8 3 C 9.108 3 10 3.892 10 5 L 10 7 L 6 7 L 6 5 C 6 3.892 6.892 3 8 3 z" transform="translate(4 4)"/>
</svg>

+ 8
- 0
.config/nwg-launchers/nwgbar/images/logout.svg View File

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; }
</style>
</defs>
<path style="fill:currentColor" class="ColorScheme-Text" d="M 3 1 C 1.892 0.99998 1 1.892 1 3 L 1 5.9941406 L 3 6 L 3 3 L 13 3 L 13 13 L 3 13 L 3 10 L 1 9.9941406 L 1 13 C 1 14.108 1.892 15 3 15 L 13 15 C 14.108 15 15 14.108 15 13 L 15 3 C 15 1.892 14.108 1 13 1 L 3 1 z M 7.2109375 4 L 5.8242188 5.3867188 L 7.4589844 7.0214844 L -0.001953125 7 L -0.001953125 9 L 7.4589844 9.0214844 L 5.8242188 10.654297 L 7.2109375 12.041016 L 11.210938 8 L 7.2109375 4 z" transform="translate(4 4)"/>
</svg>

+ 10
- 0
.config/nwg-launchers/nwgbar/images/reboot.svg View File

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; }
</style>
</defs>
<g transform="translate(4,4)">
<path style="fill:currentColor" class="ColorScheme-Text" d="M 8 1 A 7 7 0 0 0 1 8 A 7 7 0 0 0 8 15 A 7 7 0 0 0 14.701 10 L 12.58 10 A 5 5 0 0 1 8 13 A 5 5 0 0 1 3 8 A 5 5 0 0 1 8 3 A 5 5 0 0 1 11.529 4.4707 L 9 7 L 15 7 L 15 1 L 12.947 3.0527 A 7 7 0 0 0 8 1 z"/>
</g>
</svg>

+ 8
- 0
.config/nwg-launchers/nwgbar/images/shutdown.svg View File

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; }
</style>
</defs>
<path style="fill:currentColor" class="ColorScheme-Text" d="M 12 5 C 11.446 5 11 5.446 11 6 L 11 11.003906 C 11 11.557906 11.446 12.003906 12 12.003906 C 12.554 12.003906 13 11.557906 13 11.003906 L 13 6 C 13 5.446 12.554 5 12 5 z M 15.037109 6.9882812 A 1.0001 1.0001 0 0 0 14.84375 7 A 1.0001 1.0001 0 0 0 14.40625 8.8125 C 16.18475 10.1429 16.54905 12.62775 15.21875 14.40625 C 13.88835 16.18475 11.37225 16.51785 9.59375 15.1875 C 7.81525 13.85715 7.48215 11.37225 8.8125 9.59375 C 9.02906 9.30424 9.2764 9.06479 9.5625 8.84375 A 1.0032039 1.0032039 0 1 0 8.34375 7.25 C 7.9146 7.58156 7.51229 7.97204 7.1875 8.40625 C 5.2097 11.05025 5.76225 14.8348 8.40625 16.8125 C 11.05025 18.7903 14.8348 18.23775 16.8125 15.59375 C 18.7903 12.94975 18.23775 9.1652 15.59375 7.1875 A 1.0001 1.0001 0 0 0 15.037109 6.9882812 z"/>
</svg>

+ 10
- 0
.config/nwg-launchers/nwgbar/images/suspend.svg View File

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; }
</style>
</defs>
<g transform="translate(-80.000012,-680.28997)">
<path style="fill:currentColor" class="ColorScheme-Text" d="m 92.641732,685.28997 c -2.722529,0.10157 -5.231357,1.80685 -6.220533,4.56824 -1.302986,3.63742 0.515775,7.68743 4.095697,9.01134 2.71773,1.00506 5.656531,0.14514 7.483116,-1.90865 -1.308435,0.42914 -2.765217,0.45222 -4.157286,-0.0626 -3.324214,-1.22935 -5.028457,-4.97666 -3.818545,-8.35426 0.506669,-1.41443 1.452959,-2.51152 2.617551,-3.25409 z"/>
</g>
</svg>

+ 34
- 0
.config/nwg-launchers/nwgbar/style.css View File

@ -0,0 +1,34 @@
#bar {
margin: 30px /* affects top/bottom & left/right alignment */
}
button, image {
background: none;
border-style: none;
box-shadow: none;
color:#eceff4;
}
button {
padding-left: 10px;
padding-right: 10px;
margin: 5px
}
button:hover {
background-color: #17917a;
}
button:focus {
background-color: #17917a;
}
grid {
background-color: #1d2021;
border-radius: 5px;
padding: 5px;
box-shadow: 0 0 5px black;
/* e.g. for common background to all buttons */
}

+ 298
- 0
.config/sway/bellsprout-sway View File

@ -0,0 +1,298 @@
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
set $alt Mod1
font JetBrains Mono, FontAwesome 12
bindsym $mod+F7 exec --no-startup-id xset r rate 250 25 && xset b off && setxkbmap -option caps:escape
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec --no-startup-id alacritty
# kill focused window
bindsym $mod+q kill
# lock screen
bindsym $mod+$alt+s exec swaylock
exec swayidle -w \
timeout 600 'swaylock'
exec swayidle -w \
timeout 1200 'swaymsg "output * dpms off"'\
resume 'swaymsg "output * dpms on"'
# before-sleep 'swaylock'
# start rofi (a program launcher)
bindsym XF86LaunchA exec --no-startup-id rofi -show run
bindcode 225 exec --no-startup-id rofi -show run
bindsym $mod+space exec --no-startup-id rofi -show run
# change focus
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
# 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
# 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
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+d fullscreen
bindsym $mod+$alt+f fullscreen
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+t layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+$alt+space focus mode_toggle
# focus the parent container
bindsym $mod+p focus parent
# focus the child container
bindsym $mod+c focus child
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
bindsym Mod1+Control+Right workspace next
bindsym Mod1+Control+Left workspace prev
workspace_auto_back_and_forth yes
bindsym $mod+z workspace back_and_forth
bindsym $mod+Shift+z move container to workspace back_and_forth
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
########################
## Custom Keybindings
########################
bindsym $mod+f exec --no-startup-id alacrity -e ranger
bindsym Print exec scrot -s -e 'mv $f ~/Downloads'
bindsym $mod+m move scratchpad
bindsym $mod+n scratchpad show
bindsym $mod+Shift+s sticky toggle
#bindsym Control+k exec --no-startup-id echo "core.weechat */buffer_dmenu" >> $(find ~/.weechat -type p)
# Notifications
bindsym $mod+Control+Shift+space exec --no-startup-id makoctl dismiss -a
bindsym $mod+Control+space exec --no-startup-id makoctl dismiss
#########################
## Floating Windows
#########################
for_window [class="Android SDK Manager" instance="Android SDK Manager"] floating enable
for_window [class="Cb-exit" instance="cb-exit"] floating enable
for_window [class="Cb-exit" instance="cb-exit"] border none
for_window [class="^Pavucontrol$"] floating enable
for_window [instance="crx_gaedmjdfmmahhbjefcbgaolhhanlaolb"] floating enable
for_window [class="Google-chrome" instance="crx_nckgahadagoaajjgafhacjanaoiihapd"] floating enable
for_window [class="chrome_app_list"] floating enable
for_window [class="Plexamp"] floating enable
for_window [class="blueman-manager"] floating enable
for_window [class="^Bluetooth Devices"] floating enable
# https://github.com/ValveSoftware/steam-for-linux/issues/1040
for_window [class="^Steam$" title="^Friends$"] floating enable
for_window [class="^Steam$" title="Steam - News"] floating enable
for_window [class="^Steam$" title=".* - Chat"] floating enable
for_window [class="^Steam$" title="^Settings$"] floating enable
for_window [class="^Steam$" title=".* - event started"] floating enable
for_window [class="^Steam$" title=".* CD key"] floating enable
for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable
for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable
for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable
for_window [title="^Steam Keyboard$"] floating enable
for_window [title="Qalculate!"] floating enable
for_window [title="Steam"] floating enable
for_window [title="Origin"] floating enable
###########################
## Assign Workspaces
##########################
assign [class="Slack"] 3
assign [class="Plexamp"] 3
##########################
## Gaps
##########################
# new_window 1pixel
default_border pixel 0
#Hide border if 1 window
hide_edge_borders both
set $default_gaps_inner 5
set $default_gaps_outer 5
gaps inner $default_gaps_inner
gaps outer $default_gaps_outer
smart_gaps on
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Resize Containers, Vim-style ($mod+Control+[hjkl])
bindsym $mod+Control+j resize grow height 5 px or 5 ppt
bindsym $mod+Control+k resize shrink height 5 px or 5 ppt
bindsym $mod+Control+l resize grow width 5 px or 5 ppt
bindsym $mod+Control+h resize shrink width 5 px or 5 ppt
bindsym $mod+Control+Up resize grow height 5 px or 5 ppt
bindsym $mod+Control+Down resize shrink height 5 px or 5 ppt
bindsym $mod+Control+Right resize grow width 5 px or 5 ppt
bindsym $mod+Control+Left resize shrink width 5 px or 5 ppt
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
swaybar_command waybar
}
#
#bar {
# position top
# status_command i3blocks
# font pango:Liberation 10, FontAwesome 12
# strip_workspace_numbers yes
#
# colors {
# separator #586e75
# background #0c1014
# statusline #aea79f
# focused_workspace #091f2e #091f2e #ffffff
# active_workspace #073642 #073642 #ffffff
# inactive_workspace #0c1014 #0c1014 #aea79f
# urgent_workspace #77216f #77216f #ffffff
# }
#}
# class border backgr. text indicator child_border
client.focused #FFFFFF #BF360C #fdf6e3 #FF0000 #FFFFFF
client.focused_inactive #073642 #FF9800 #93a1a1 #002b36 #073642
client.unfocused #002b36 #311B92 #586e75 #002b36 #002b36
client.urgent #dc322f #b71c1c #fdf6e3 #dc322f #dc322f
############################
## Displays
############################
#HOME
output eDP-1 pos 1 1 res 2160x1440 scale 1
# background images
#output * bg ~/Pictures/Wallpapers/scenic-view-of-forest-during-night-time-1252869.jpg fill
output * bg #1d2021 solid_color
##############################
## Startup Things
##############################
exec --no-startup-id pcmanfm -d
#exec --no-startup-id xset r rate 250 25
#exec --no-startup-id xset b off
#exec --no-startup-id setxkbmap -option caps:escape
#exec --no-startup-id nightshift -l 39.0315533:-94.4954291 -d
#exec --no-startup-id setxkbmap -model apple_laptop -layout us -variant dvp
exec --no-startup-id mako
#############################
## Media Keys
#############################
bindsym XF86AudioLowerVolume exec --no-startup-id "pulseaudio-ctl down ; pkill -RTMIN+1 i3blocks"
bindsym XF86AudioRaiseVolume exec --no-startup-id "pulseaudio-ctl up ; pkill -RTMIN+1 i3blocks"
bindsym XF86AudioMute exec --no-startup-id "pulseaudio-ctl mute ; pkill -RTMIN+1 i3blocks"
# bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
# bindsym XF86AudioPause exec --no-startup-id playerctl play-pause
# bindsym XF86AudioPlayPause exec --no-startup-id playerctl play-pause
#bindsym $mod1+Shift+p exec --no-startup-id echo "cycle pause" > ~/.config/mpv/control
bindsym XF86MonBrightnessUp exec --no-startup-id "brightnessctl s +10%; brightnessctl -d gmux_backlight s +10%"
bindsym XF86MonBrightnessDown exec --no-startup-id "brightnessctl s 10%-; brightnessctl -d gmux_backlight s 10%-"
set $gnome-schema org.gnome.desktop.interface
exec_always {
gsettings set $gnome-schema gtk-theme 'Flat-Remix-GTK-Green-Darkest'
gsettings set $gnome-schema icon-theme 'Flat-Remix-Green-Dark'
}
############################
## Trackpad
############################
input "1118:2496:Microsoft_Surface_Type_Cover_Touchpad" {
natural_scroll disabled
tap_button_map lrm
}

+ 8
- 1
.config/waybar/config View File

@ -25,7 +25,8 @@
// "battery",
// "battery#bat2",
"clock",
"tray"
"tray",
"custom/power"
],
// Modules configuration
// "sway/workspaces": {
@ -210,5 +211,11 @@
"custom/playerctl": {
"format": "{}",
"exec": ""
},
"custom/power": {
"format": "⏻",
"on-click": "nwgbar -o 0.2",
"escape": true,
"tooltip": false
}
}

+ 4
- 0
.config/waybar/style.css View File

@ -143,6 +143,10 @@ label:focus {
#custom-media.custom-vlc {
}
#custom-power {
padding-right: 15px;
padding-top: 3px;
}
#temperature {
}


Loading…
Cancel
Save