Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Adds screenshots to i3
Browse files Browse the repository at this point in the history
  • Loading branch information
nvnivs committed Oct 31, 2023
1 parent b5970bc commit f09a004
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions Policyfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
named_run_list 'chef', 'jarbas::pre_platform', 'jarbas::chef', 'jarbas::post_platform'
named_run_list 'docker', 'jarbas::pre_platform', 'jarbas::docker', 'jarbas::post_platform'
named_run_list 'gcloud', 'jarbas::pre_platform', 'jarbas::gcloud', 'jarbas::post_platform'
named_run_list 'i3', 'jarbas::i3'
named_run_list 'platform', 'jarbas::pre_platform', 'jarbas::post_platform'
named_run_list 'python', 'jarbas::pre_platform', 'jarbas::python', 'jarbas::post_platform'
named_run_list 'rdp', 'jarbas::pre_platform', 'jarbas::rdp', 'jarbas::post_platform'
Expand Down
6 changes: 4 additions & 2 deletions attributes/packages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
default['jarbas']['packages']['arch'] = [
'iotop', # View I/O usage of processes
'ntp', # Software clock syncronizer
'maim', # maim (Make Image) is an utility that takes screenshots of your desktop
'poedit', # Cross-platform gettext catalogs (.po files) editor
'pulseaudio', # Proxy for sound hardware
'qt5-x11extras',
'qt5-quickcontrols',
'xclip',
]

# List of arch only AUR packages
Expand All @@ -30,8 +32,8 @@

# Homebrew packages for mac_ox_x
default['jarbas']['packages']['homebrew'] = [
'coreutils', # GNU File, Shell, and Text utilities
'jq', # Lightweight and flexible command-line JSON processor
'coreutils', # GNU File, Shell, and Text utilities
'jq', # Lightweight and flexible command-line JSON processor
'telnet', # User interface to the TELNET protocol (built from macOS Sierra sources)
'tcptraceroute', # Traceroute implementation using TCP packets
'watch', # Executes a program periodically, showing output fullscreen
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email '[email protected]'
license 'All Rights Reserved'
description 'Installs/Configures workstation'
version '5.15.0'
version '5.16.0'

chef_version '>= 17.2'
issues_url 'https://github.com/z0c/jarbas/issues'
Expand Down
4 changes: 4 additions & 0 deletions templates/i3_config.erb
Original file line number Diff line number Diff line change
Expand Up @@ -422,3 +422,7 @@ mode "$mode_gaps_outer" {
default_border pixel 1
default_floating_border pixel 1
for_window [class="^.*"] border pixel 1

# Screenshots
bindsym $mod+p exec --no-startup-id maim --window $(xdotool getactivewindow) "/home/$USER/Pictures/$(date)"
bindsym Shift+$mod+p exec --no-startup-id maim --window $(xdotool getactivewindow) | xclip -selection clipboard -t image/png

0 comments on commit f09a004

Please sign in to comment.